<?php

require_once dirname(__FILE__).'/../lib/contacteGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/contacteGeneratorHelper.class.php';

/**
 * contacte actions.
 *
 * @package    vvberp
 * @subpackage contacte
 * @author     Flo
 * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
 */
class contacteActions extends autoContacteActions
{
	public function executeIndex(sfWebRequest $r)
	{
		if ($for = $r->getParameter("for"))
		{
			$f = $this->configuration->getFilterDefaults();
			$f["client_id"] = $for;
			$this->setFilters($f);
		}
		parent::executeIndex($r);
	}
	
	public function executeNew(sfWebRequest $r)
	{
		parent::executeNew($r);
		if ($for = $r->getParameter("for"))
		{
	    //TODO: prelucreaza $this->form astfel incat selectul sa aiba clientul selectat 
		}
	}
}
